package yur.wedding.modules.sys.dao;

import yur.wedding.modules.sys.entity.SysDocumentDocsubcategoryEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 
 * 
 * @author Yur
 * @email ${email}
 * @date 2022-08-05 07:19:51
 */
@Mapper
public interface SysDocumentDocsubcategoryDao extends BaseMapper<SysDocumentDocsubcategoryEntity> {

    /**
     * 只查询不包括按钮  用于弹框 添加目录或者修改等
     * @return
     */
    List<SysDocumentDocsubcategoryEntity> queryNotButtonList(String parentName);

    /**
     * 通过父类目录查是否存在子目录  或子文件
     * @param dbgyIds
     * @return
     */
    List<SysDocumentDocsubcategoryEntity> qeryListParentId(Long dbgyIds);


    /**
     * 查找父类ID
     * @param maincategoryId
     * @return
     */
   SysDocumentDocsubcategoryEntity getParentTree(Long maincategoryId);
}
